<?php
namespace app\clerk\controller;
use app\clerk\model\Order as OrderModel;
use app\clerk\model\Comment as CommentModel;
use app\store\model\Recharge as RechargeModel;
use app\clerk\model\Goods as GoodsModel;
use app\clerk\model\User as UserModel;
/**
 * 门店后台首页
 */
class Index extends Controller
{
    public function index()
    {
		$count = array();
		$count['order'] = OrderModel::getAllCount($this->shop_id);	//订单和收入统计
		$count['comment'] = CommentModel::getCount($this->shop_id);	//评价
		$count['recharge'] = RechargeModel::getCount($this->shop_id);	//充值统计
		$count['user'] = UserModel::getCount();	//用户统计
		$count['goods'] = GoodsModel::getCount($this->shop_id);	//产品统计
		
		return $this->fetch('index', compact('count'));
    }
}
